package com.reading.feign;

import com.reading.pojo.GlodVO;
import com.reading.pojo.user.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@Component
@FeignClient(name = "user-service")
public interface UserFeignClient {

    @RequestMapping("/user/findOne/{id}")
    public User findOne(@PathVariable("id") Integer id);

    @RequestMapping("/user/updateUserGlod2")
    public void updateUserGlod2(@RequestBody GlodVO glodVO);
}
